EXTEND: Now try customizing your program! Be sure to meet these minimum technical requirements:

  1. Try changing the values of the rectangle width and height variables. Choose numbers between 1 and 6.
  2. Add a square to your program and name it my_square that has a variable for its side length.
  3. Have the square say "My area is ____". Remember to use str() to convert its area!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)